package com.sharing.mapper;

import com.sharing.domain.UserProduction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Du
 * @version 1.0
 * @description TODO
 * @date 2023/4/4 11.21
 */
@Mapper
public interface UserProductionMapper {
    List<String> selectContentByUserId(@Param("productionId") Integer userId);
    Integer updateContentById(UserProduction userProduction);

    Integer deleteContent(@Param("id") Integer id);

    UserProduction selectProductionById(Integer productionId);

    Integer selectProductionsNumByUserId(Integer userId);

    List<UserProduction> selectProductionsByUserId(Integer userId, Integer page, Integer size);

    UserProduction insertContent(UserProduction userProduction);

    List<UserProduction> selectProductionsByIds(List<Integer> productionIds);

    UserProduction selectUserProductionById(Integer id);
}
